package com.wsd.bean;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * ProductOrder entity. @author MyEclipse Persistence Tools
 */

public class ProductOrder implements java.io.Serializable {

	// Fields

	private Integer OId;
	private Admin admin;
	private Users users;
	private Timestamp OTime;
	private Float OSumPrice;
	private Integer OSumNum;
	private Boolean OState;
	private Set orderLists = new HashSet(0);

	// Constructors

	/** default constructor */
	public ProductOrder() {
	}

	/** minimal constructor */
	public ProductOrder(Timestamp OTime, Float OSumPrice, Integer OSumNum,
			Boolean OState) {
		this.OTime = OTime;
		this.OSumPrice = OSumPrice;
		this.OSumNum = OSumNum;
		this.OState = OState;
	}

	/** full constructor */
	public ProductOrder(Admin admin, Users users, Timestamp OTime,
			Float OSumPrice, Integer OSumNum, Boolean OState, Set orderLists) {
		this.admin = admin;
		this.users = users;
		this.OTime = OTime;
		this.OSumPrice = OSumPrice;
		this.OSumNum = OSumNum;
		this.OState = OState;
		this.orderLists = orderLists;
	}

	// Property accessors

	public Integer getOId() {
		return this.OId;
	}

	public void setOId(Integer OId) {
		this.OId = OId;
	}

	public Admin getAdmin() {
		return this.admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Timestamp getOTime() {
		return this.OTime;
	}

	public void setOTime(Timestamp OTime) {
		this.OTime = OTime;
	}

	public Float getOSumPrice() {
		return this.OSumPrice;
	}

	public void setOSumPrice(Float OSumPrice) {
		this.OSumPrice = OSumPrice;
	}

	public Integer getOSumNum() {
		return this.OSumNum;
	}

	public void setOSumNum(Integer OSumNum) {
		this.OSumNum = OSumNum;
	}

	public Boolean getOState() {
		return this.OState;
	}

	public void setOState(Boolean OState) {
		this.OState = OState;
	}

	public Set getOrderLists() {
		return this.orderLists;
	}

	public void setOrderLists(Set orderLists) {
		this.orderLists = orderLists;
	}

}